package com.example.smartgreenhouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("air_humidity")
public class AirHumidity {
    @TableId(type = IdType.AUTO)  // 设置自增策略// 指定自增策略
    private Long id;
    private Long sensor_id = 3L;
    private Long greenhouse_id = 1L;
    private int humidity;
    private int humidity_change_value;
    private float humidity_change_rate;
    private LocalDateTime collect_time;
    private LocalDateTime create_time;
}
